﻿@model Zero.Entity.Models.Sys_Menu


   
        <div class="pageContent" style="border-left: 1px #B8D0D6 solid; border-right: 1px #B8D0D6 solid">
            <div class="panelBar">
                <ul class="toolBar">
                    <li><a class="add" href="/Menus/MenuDetail/@Model.MenuID/Add" target="dialog" mask="true" rel="dlg_page2" ><span>
                        添加</span></a></li>
                    <li><a class="delete" href="/Menus/Delete/{sid_menu}/Edit" target="ajaxTodo"
                        title="确定要删除吗?"><span>删除</span></a></li>
                    <li><a class="edit" href="/Menus/MenuDetail/{sid_menu}/Edit" target="dialog"
                        mask="true"><span>修改</span></a></li>
                    <li class="line">line</li>
                    <li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" title="实要导出这些记录吗?">
                        <span>导出EXCEL</span></a></li>
                </ul>
            </div>
            <table class="list" width="99%" layouth="60" rel="jbsxBox">
                <thead>
                    <tr>
                        <th width="60">
                            序号
                        </th>
                        <th width="120">
                            菜单编号
                        </th>
                        <th width="100">
                            菜单名称
                        </th>
                        <th width="100">
                            父菜单名称
                        </th>
                        
                        <th >
                            菜单链接
                        </th>
                        <th width="80">
                            菜单图标
                        </th>
                    </tr>
                </thead>
                <tbody>
                    @{int i=0;}
                    @foreach(var m in Model.ChildMenus.OrderBy(o=>o.MenuNo)){
            <tr target="sid_menu" rel="@m.MenuID"> 
                  <td>@(++i)</td> 
                  <td>@m.MenuNo</td>
                  <td>@m.MenuName</td> 
                  <td>@m.Parent.MenuName</td> 
                  <td>@m.MenuUrl</td> 
                  <td>@m.MenuIcon</td> 
            </tr> 
                    }
                </tbody>
            </table>
            <div class="panelBar">
                <div class="pages">
                    <span>显示</span>
                    <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'jbsxBox')">
                        <option value="20">20</option>
                        <option value="50">50</option>
                        <option value="100">100</option>
                        <option value="200">200</option>
                    </select>
                    <span>条，共50条</span>
                </div>
                <div class="pagination" rel="jbsxBox" totalcount="200" numperpage="20" pagenumshown="5"
                    currentpage="1">
                </div>
                
            </div>
        </div>
   
